package com.sen.paydemo.enums.wxpay;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 微信支付下单接口 枚举
 */
@AllArgsConstructor
@Getter
public enum WxApiTpye {

    // JSAPI下单  小程序
    JSAPI_PAY("/v3/pay/transactions/jsapi"),

    // APP下单
    APP_PAY("/v3/pay/transactions/app"),

    // H5下单
    H5_PAY("/v3/pay/transactions/h5"),

    // Native下单
    NATIVE_PAY("/v3/pay/transactions/native"),

    // 商户订单号查询订单
    QUERY_ORDER_BY_NO("/v3/pay/transactions/out-trade-no/%s"),

    // 关闭订单
    CLOSE_ORDER_BY_NO("/v3/pay/transactions/out-trade-no/%s/close"),

    // 微信支付订单号查询订单
    QUERY_ORDER_BY_TRANSACTION_ID("/v3/pay/transactions/id/%s"),

    // 退款申请
    DOMESTIC_REFUNDS("/v3/refund/domestic/refunds"),

    // 查询单笔退款（通过商户退款单号）
    DOMESTIC_REFUND_QUERY("/v3/refund/domestic/refunds/%s"),

    // 申请交易账单
    TRADE_BILLS("/v3/bill/tradebill"),

    // 申请资金账单
    FUND_FLOW_BILL("/v3/bill/fundflowbill"),

    ;

    /**
     * 类型
     */
    private final String type;
}
